﻿using System;
namespace CardRegisterCollection.Model
{
	/// <summary>
	/// unit:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Unit
	{
		public Unit()
		{}
		#region Model
		private string _id;
		private string _parentid;
		private string _name;
		private int? _type;
		private string _createdby;
		private DateTime? _createdat=DateTime.Now;
		private bool _deleteflag= false;
		private string _lastupdatedby;
		private DateTime? _lastupdatedat;
		/// <summary>
		/// 
		/// </summary>
		public string ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 父编号
		/// </summary>
		public string ParentId
		{
			set{ _parentid=value;}
			get{return _parentid;}
		}
		/// <summary>
		/// 名称
		/// </summary>
		public string Name
		{
			set{ _name=value;}
			get{return _name;}
		}
		/// <summary>
		/// 0：单位;1：部门
		/// </summary>
		public int? Type
		{
			set{ _type=value;}
			get{return _type;}
		}
		/// <summary>
		/// 创建人
		/// </summary>
		public string CreatedBy
		{
			set{ _createdby=value;}
			get{return _createdby;}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreatedAt
		{
			set{ _createdat=value;}
			get{return _createdat;}
		}
		/// <summary>
		/// 是否注销
		/// </summary>
		public bool DeleteFlag
		{
			set{ _deleteflag=value;}
			get{return _deleteflag;}
		}
		/// <summary>
		/// 最后更新人
		/// </summary>
		public string LastUpdatedBy
		{
			set{ _lastupdatedby=value;}
			get{return _lastupdatedby;}
		}
		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime? LastUpdatedAt
		{
			set{ _lastupdatedat=value;}
			get{return _lastupdatedat;}
		}
		#endregion Model

	}
}

